let xxx = {
    name: 'xxx',
    data() {
        return {};
    },
    mounted() {
        this.$nextTick(() => {
            layui.carousel.render({
                elem: '#index1',
                width: '100%',
                height: '100%',
                arrow: 'always' //始终显示箭头
                //,anim: 'updown' //切换动画方式
            });
        });
    },
    template: document.getElementById('xxx').innerHTML
};
Vue.component('xxx', xxx);
